| # 传参 |                                                              |                                                      |
| ------ | ------------------------------------------------------------ | ---------------------------------------------------- |
|        | [2](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_2) |                                                      |
|        | [3](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_3) | 使用[httpGet("/ABC/{xxx}")]                          |
|        | [4](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_4) | 后面必须传值才可以                                   |
|        | [5](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_5) | 改变传入参数路径                                     |
|        | [6](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_6) |                                                      |
|        | [7](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_7) |                                                      |
|        | [8](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_8) | 也可以直接写                                         |
|        | [9](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_9) | ```cs                                                |
|        | [10](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_10) | **public** **class** **TestController** : Controller |
|        | [11](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_11) | {                                                    |
|        | [12](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_12) |                                                      |
|        | [13](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_13) | **public** **string** **Index**(**int** id)          |
|        | [14](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_14) | {                                                    |
|        | [15](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_15) |                                                      |
|        | [16](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_16) | **return** $"你传入的id为{id.**ToString**()}" ;      |
|        | [17](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_17) | }                                                    |
|        | [18](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_18) | **public** **string** **list**(**int** id){          |
|        | [19](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_19) | **return** id.**ToString**();                        |
|        | [20](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_20) | }                                                    |
|        | [21](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_21) |                                                      |
|        | [22](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_22) |                                                      |
|        | [23](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_23) | }                                                    |
|        | [24](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_24) | ```                                                  |
|        | [25](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_25) | 然后通过Test访问                                     |
|        | [26](https://gitee.com/level-21-software-class-2/grade21_soft2_mvc_log/pulls/52/files#2959e5c57b270400b862b122b1c2998dc999985c_0_26) | 传入id值                                             |